<?php echo $this->fetch('header.html'); ?>

<body>

<ul class="nav nav-tabs">
	<li class="active"><a href="<?php echo $this->_var['appadmin']; ?>?m=shop_category">分类管理</a></li>
   
    </ul>
 
  
  <div class="main-body">
  	 
    <table class="table">
    	<tr>
        	<td align="center">名称</td>
            <td align="center">状态</td>
            <td align="center">操作</td>
        </tr>
    	<?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
        <tr class="item">
        	<td width="200">
            	<?php echo $this->_var['c']['title']; ?>  
            </td>
            <td> <?php if ($this->_var['c']['status'] == 2): ?>
   <img src='<?php echo $this->_var['skins']; ?>images/yes.gif' class="ajax_no" url='<?php echo $this->_var['appadmin']; ?>?m=shop_category&a=status&id=<?php echo $this->_var['c']['id']; ?>&status=4' rurl='<?php echo $this->_var['appadmin']; ?>?m=shop_category&a=status&id=<?php echo $this->_var['c']['id']; ?>&status=2'>
    <?php else: ?>
    <img src='<?php echo $this->_var['skins']; ?>images/no.gif' class="ajax_yes" url='<?php echo $this->_var['appadmin']; ?>?m=shop_category&a=status&id=<?php echo $this->_var['c']['id']; ?>&status=2' rurl='<?php echo $this->_var['appadmin']; ?>?m=shop_category&a=status&id=<?php echo $this->_var['c']['id']; ?>&status=4'>
    <?php endif; ?></td>
            <td align="right"><a href="<?php echo $this->_var['appadmin']; ?>?m=shop_category&a=add&id=<?php echo $this->_var['c']['id']; ?>">编辑</a>&nbsp;&nbsp; 
            <a class="delete" href="javascript:;" url="<?php echo $this->_var['appadmin']; ?>?m=shop_category&a=delete&id=<?php echo $this->_var['c']['id']; ?>">删除</a></td>
            
             
            
        </tr>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </table>
  	
  </div>
<?php echo $this->fetch('footer.html'); ?>
</body>
</html>
